<template>
  <div class="col-xs-offset-2 clo-xs-8">
    <div class="page-header"><h2>Vue Rouuter Demo</h2></div>
    <button @click="back">前进</button>
    <button @click="forward">后退</button>
    <button @click="test">go</button>
  </div>
</template>

<script>
export default {
  name: "MyBanner",
  methods: {
    back() {
      this.$router.back();
    },
    forward() {
      this.$router.forward();
    },
    test() {
      this.$router.go(2);
    },
  },
};
</script>
